package com.rc.saas.tenant.model.acct;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AcctRuleExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AcctRuleExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAcctRuleIdIsNull() {
            addCriterion("acct_rule_id is null");
            return (Criteria) this;
        }

        public Criteria andAcctRuleIdIsNotNull() {
            addCriterion("acct_rule_id is not null");
            return (Criteria) this;
        }

        public Criteria andAcctRuleIdEqualTo(Long value) {
            addCriterion("acct_rule_id =", value, "acctRuleId");
            return (Criteria) this;
        }

        public Criteria andAcctRuleIdNotEqualTo(Long value) {
            addCriterion("acct_rule_id <>", value, "acctRuleId");
            return (Criteria) this;
        }

        public Criteria andAcctRuleIdGreaterThan(Long value) {
            addCriterion("acct_rule_id >", value, "acctRuleId");
            return (Criteria) this;
        }

        public Criteria andAcctRuleIdGreaterThanOrEqualTo(Long value) {
            addCriterion("acct_rule_id >=", value, "acctRuleId");
            return (Criteria) this;
        }

        public Criteria andAcctRuleIdLessThan(Long value) {
            addCriterion("acct_rule_id <", value, "acctRuleId");
            return (Criteria) this;
        }

        public Criteria andAcctRuleIdLessThanOrEqualTo(Long value) {
            addCriterion("acct_rule_id <=", value, "acctRuleId");
            return (Criteria) this;
        }

        public Criteria andAcctRuleIdIn(List<Long> values) {
            addCriterion("acct_rule_id in", values, "acctRuleId");
            return (Criteria) this;
        }

        public Criteria andAcctRuleIdNotIn(List<Long> values) {
            addCriterion("acct_rule_id not in", values, "acctRuleId");
            return (Criteria) this;
        }

        public Criteria andAcctRuleIdBetween(Long value1, Long value2) {
            addCriterion("acct_rule_id between", value1, value2, "acctRuleId");
            return (Criteria) this;
        }

        public Criteria andAcctRuleIdNotBetween(Long value1, Long value2) {
            addCriterion("acct_rule_id not between", value1, value2, "acctRuleId");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIsNull() {
            addCriterion("tenant_code is null");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIsNotNull() {
            addCriterion("tenant_code is not null");
            return (Criteria) this;
        }

        public Criteria andTenantCodeEqualTo(String value) {
            addCriterion("tenant_code =", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotEqualTo(String value) {
            addCriterion("tenant_code <>", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeGreaterThan(String value) {
            addCriterion("tenant_code >", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeGreaterThanOrEqualTo(String value) {
            addCriterion("tenant_code >=", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLessThan(String value) {
            addCriterion("tenant_code <", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLessThanOrEqualTo(String value) {
            addCriterion("tenant_code <=", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeLike(String value) {
            addCriterion("tenant_code like", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotLike(String value) {
            addCriterion("tenant_code not like", value, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeIn(List<String> values) {
            addCriterion("tenant_code in", values, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotIn(List<String> values) {
            addCriterion("tenant_code not in", values, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeBetween(String value1, String value2) {
            addCriterion("tenant_code between", value1, value2, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantCodeNotBetween(String value1, String value2) {
            addCriterion("tenant_code not between", value1, value2, "tenantCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeIsNull() {
            addCriterion("tenant_operator_code is null");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeIsNotNull() {
            addCriterion("tenant_operator_code is not null");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeEqualTo(String value) {
            addCriterion("tenant_operator_code =", value, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeNotEqualTo(String value) {
            addCriterion("tenant_operator_code <>", value, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeGreaterThan(String value) {
            addCriterion("tenant_operator_code >", value, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeGreaterThanOrEqualTo(String value) {
            addCriterion("tenant_operator_code >=", value, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeLessThan(String value) {
            addCriterion("tenant_operator_code <", value, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeLessThanOrEqualTo(String value) {
            addCriterion("tenant_operator_code <=", value, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeLike(String value) {
            addCriterion("tenant_operator_code like", value, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeNotLike(String value) {
            addCriterion("tenant_operator_code not like", value, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeIn(List<String> values) {
            addCriterion("tenant_operator_code in", values, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeNotIn(List<String> values) {
            addCriterion("tenant_operator_code not in", values, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeBetween(String value1, String value2) {
            addCriterion("tenant_operator_code between", value1, value2, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andTenantOperatorCodeNotBetween(String value1, String value2) {
            addCriterion("tenant_operator_code not between", value1, value2, "tenantOperatorCode");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdIsNull() {
            addCriterion("operator_station_id is null");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdIsNotNull() {
            addCriterion("operator_station_id is not null");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdEqualTo(Long value) {
            addCriterion("operator_station_id =", value, "operatorStationId");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdNotEqualTo(Long value) {
            addCriterion("operator_station_id <>", value, "operatorStationId");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdGreaterThan(Long value) {
            addCriterion("operator_station_id >", value, "operatorStationId");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdGreaterThanOrEqualTo(Long value) {
            addCriterion("operator_station_id >=", value, "operatorStationId");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdLessThan(Long value) {
            addCriterion("operator_station_id <", value, "operatorStationId");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdLessThanOrEqualTo(Long value) {
            addCriterion("operator_station_id <=", value, "operatorStationId");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdIn(List<Long> values) {
            addCriterion("operator_station_id in", values, "operatorStationId");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdNotIn(List<Long> values) {
            addCriterion("operator_station_id not in", values, "operatorStationId");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdBetween(Long value1, Long value2) {
            addCriterion("operator_station_id between", value1, value2, "operatorStationId");
            return (Criteria) this;
        }

        public Criteria andOperatorStationIdNotBetween(Long value1, Long value2) {
            addCriterion("operator_station_id not between", value1, value2, "operatorStationId");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeIsNull() {
            addCriterion("rule_start_time is null");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeIsNotNull() {
            addCriterion("rule_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeEqualTo(Date value) {
            addCriterion("rule_start_time =", value, "ruleStartTime");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeNotEqualTo(Date value) {
            addCriterion("rule_start_time <>", value, "ruleStartTime");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeGreaterThan(Date value) {
            addCriterion("rule_start_time >", value, "ruleStartTime");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("rule_start_time >=", value, "ruleStartTime");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeLessThan(Date value) {
            addCriterion("rule_start_time <", value, "ruleStartTime");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("rule_start_time <=", value, "ruleStartTime");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeIn(List<Date> values) {
            addCriterion("rule_start_time in", values, "ruleStartTime");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeNotIn(List<Date> values) {
            addCriterion("rule_start_time not in", values, "ruleStartTime");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeBetween(Date value1, Date value2) {
            addCriterion("rule_start_time between", value1, value2, "ruleStartTime");
            return (Criteria) this;
        }

        public Criteria andRuleStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("rule_start_time not between", value1, value2, "ruleStartTime");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeIsNull() {
            addCriterion("rule_end_time is null");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeIsNotNull() {
            addCriterion("rule_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeEqualTo(Date value) {
            addCriterion("rule_end_time =", value, "ruleEndTime");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeNotEqualTo(Date value) {
            addCriterion("rule_end_time <>", value, "ruleEndTime");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeGreaterThan(Date value) {
            addCriterion("rule_end_time >", value, "ruleEndTime");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("rule_end_time >=", value, "ruleEndTime");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeLessThan(Date value) {
            addCriterion("rule_end_time <", value, "ruleEndTime");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("rule_end_time <=", value, "ruleEndTime");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeIn(List<Date> values) {
            addCriterion("rule_end_time in", values, "ruleEndTime");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeNotIn(List<Date> values) {
            addCriterion("rule_end_time not in", values, "ruleEndTime");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeBetween(Date value1, Date value2) {
            addCriterion("rule_end_time between", value1, value2, "ruleEndTime");
            return (Criteria) this;
        }

        public Criteria andRuleEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("rule_end_time not between", value1, value2, "ruleEndTime");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeIsNull() {
            addCriterion("elec_rule_type is null");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeIsNotNull() {
            addCriterion("elec_rule_type is not null");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeEqualTo(String value) {
            addCriterion("elec_rule_type =", value, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeNotEqualTo(String value) {
            addCriterion("elec_rule_type <>", value, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeGreaterThan(String value) {
            addCriterion("elec_rule_type >", value, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeGreaterThanOrEqualTo(String value) {
            addCriterion("elec_rule_type >=", value, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeLessThan(String value) {
            addCriterion("elec_rule_type <", value, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeLessThanOrEqualTo(String value) {
            addCriterion("elec_rule_type <=", value, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeLike(String value) {
            addCriterion("elec_rule_type like", value, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeNotLike(String value) {
            addCriterion("elec_rule_type not like", value, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeIn(List<String> values) {
            addCriterion("elec_rule_type in", values, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeNotIn(List<String> values) {
            addCriterion("elec_rule_type not in", values, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeBetween(String value1, String value2) {
            addCriterion("elec_rule_type between", value1, value2, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecRuleTypeNotBetween(String value1, String value2) {
            addCriterion("elec_rule_type not between", value1, value2, "elecRuleType");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleIsNull() {
            addCriterion("elec_acct_rule is null");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleIsNotNull() {
            addCriterion("elec_acct_rule is not null");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleEqualTo(String value) {
            addCriterion("elec_acct_rule =", value, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleNotEqualTo(String value) {
            addCriterion("elec_acct_rule <>", value, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleGreaterThan(String value) {
            addCriterion("elec_acct_rule >", value, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleGreaterThanOrEqualTo(String value) {
            addCriterion("elec_acct_rule >=", value, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleLessThan(String value) {
            addCriterion("elec_acct_rule <", value, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleLessThanOrEqualTo(String value) {
            addCriterion("elec_acct_rule <=", value, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleLike(String value) {
            addCriterion("elec_acct_rule like", value, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleNotLike(String value) {
            addCriterion("elec_acct_rule not like", value, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleIn(List<String> values) {
            addCriterion("elec_acct_rule in", values, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleNotIn(List<String> values) {
            addCriterion("elec_acct_rule not in", values, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleBetween(String value1, String value2) {
            addCriterion("elec_acct_rule between", value1, value2, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andElecAcctRuleNotBetween(String value1, String value2) {
            addCriterion("elec_acct_rule not between", value1, value2, "elecAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleIsNull() {
            addCriterion("service_acct_rule is null");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleIsNotNull() {
            addCriterion("service_acct_rule is not null");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleEqualTo(String value) {
            addCriterion("service_acct_rule =", value, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleNotEqualTo(String value) {
            addCriterion("service_acct_rule <>", value, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleGreaterThan(String value) {
            addCriterion("service_acct_rule >", value, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleGreaterThanOrEqualTo(String value) {
            addCriterion("service_acct_rule >=", value, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleLessThan(String value) {
            addCriterion("service_acct_rule <", value, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleLessThanOrEqualTo(String value) {
            addCriterion("service_acct_rule <=", value, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleLike(String value) {
            addCriterion("service_acct_rule like", value, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleNotLike(String value) {
            addCriterion("service_acct_rule not like", value, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleIn(List<String> values) {
            addCriterion("service_acct_rule in", values, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleNotIn(List<String> values) {
            addCriterion("service_acct_rule not in", values, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleBetween(String value1, String value2) {
            addCriterion("service_acct_rule between", value1, value2, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andServiceAcctRuleNotBetween(String value1, String value2) {
            addCriterion("service_acct_rule not between", value1, value2, "serviceAcctRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleIsNull() {
            addCriterion("total_rule is null");
            return (Criteria) this;
        }

        public Criteria andTotalRuleIsNotNull() {
            addCriterion("total_rule is not null");
            return (Criteria) this;
        }

        public Criteria andTotalRuleEqualTo(String value) {
            addCriterion("total_rule =", value, "totalRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleNotEqualTo(String value) {
            addCriterion("total_rule <>", value, "totalRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleGreaterThan(String value) {
            addCriterion("total_rule >", value, "totalRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleGreaterThanOrEqualTo(String value) {
            addCriterion("total_rule >=", value, "totalRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleLessThan(String value) {
            addCriterion("total_rule <", value, "totalRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleLessThanOrEqualTo(String value) {
            addCriterion("total_rule <=", value, "totalRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleLike(String value) {
            addCriterion("total_rule like", value, "totalRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleNotLike(String value) {
            addCriterion("total_rule not like", value, "totalRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleIn(List<String> values) {
            addCriterion("total_rule in", values, "totalRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleNotIn(List<String> values) {
            addCriterion("total_rule not in", values, "totalRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleBetween(String value1, String value2) {
            addCriterion("total_rule between", value1, value2, "totalRule");
            return (Criteria) this;
        }

        public Criteria andTotalRuleNotBetween(String value1, String value2) {
            addCriterion("total_rule not between", value1, value2, "totalRule");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("remark is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("remark is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("remark =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("remark <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("remark >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("remark >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("remark <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("remark <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("remark like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("remark not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("remark in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("remark not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("remark between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("remark not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(String value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(String value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(String value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(String value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(String value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(String value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLike(String value) {
            addCriterion("status like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotLike(String value) {
            addCriterion("status not like", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<String> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<String> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(String value1, String value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(String value1, String value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNull() {
            addCriterion("created_by is null");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNotNull() {
            addCriterion("created_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedByEqualTo(String value) {
            addCriterion("created_by =", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotEqualTo(String value) {
            addCriterion("created_by <>", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThan(String value) {
            addCriterion("created_by >", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThanOrEqualTo(String value) {
            addCriterion("created_by >=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThan(String value) {
            addCriterion("created_by <", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThanOrEqualTo(String value) {
            addCriterion("created_by <=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLike(String value) {
            addCriterion("created_by like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotLike(String value) {
            addCriterion("created_by not like", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByIn(List<String> values) {
            addCriterion("created_by in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotIn(List<String> values) {
            addCriterion("created_by not in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByBetween(String value1, String value2) {
            addCriterion("created_by between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotBetween(String value1, String value2) {
            addCriterion("created_by not between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNull() {
            addCriterion("created_time is null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIsNotNull() {
            addCriterion("created_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeEqualTo(Date value) {
            addCriterion("created_time =", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotEqualTo(Date value) {
            addCriterion("created_time <>", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThan(Date value) {
            addCriterion("created_time >", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("created_time >=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThan(Date value) {
            addCriterion("created_time <", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("created_time <=", value, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeIn(List<Date> values) {
            addCriterion("created_time in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotIn(List<Date> values) {
            addCriterion("created_time not in", values, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeBetween(Date value1, Date value2) {
            addCriterion("created_time between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andCreatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("created_time not between", value1, value2, "createdTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNull() {
            addCriterion("last_updated_by is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIsNotNull() {
            addCriterion("last_updated_by is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByEqualTo(String value) {
            addCriterion("last_updated_by =", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotEqualTo(String value) {
            addCriterion("last_updated_by <>", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThan(String value) {
            addCriterion("last_updated_by >", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByGreaterThanOrEqualTo(String value) {
            addCriterion("last_updated_by >=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThan(String value) {
            addCriterion("last_updated_by <", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLessThanOrEqualTo(String value) {
            addCriterion("last_updated_by <=", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByLike(String value) {
            addCriterion("last_updated_by like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotLike(String value) {
            addCriterion("last_updated_by not like", value, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByIn(List<String> values) {
            addCriterion("last_updated_by in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotIn(List<String> values) {
            addCriterion("last_updated_by not in", values, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByBetween(String value1, String value2) {
            addCriterion("last_updated_by between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedByNotBetween(String value1, String value2) {
            addCriterion("last_updated_by not between", value1, value2, "lastUpdatedBy");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNull() {
            addCriterion("last_updated_time is null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIsNotNull() {
            addCriterion("last_updated_time is not null");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeEqualTo(Date value) {
            addCriterion("last_updated_time =", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotEqualTo(Date value) {
            addCriterion("last_updated_time <>", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThan(Date value) {
            addCriterion("last_updated_time >", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("last_updated_time >=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThan(Date value) {
            addCriterion("last_updated_time <", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeLessThanOrEqualTo(Date value) {
            addCriterion("last_updated_time <=", value, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeIn(List<Date> values) {
            addCriterion("last_updated_time in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotIn(List<Date> values) {
            addCriterion("last_updated_time not in", values, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeBetween(Date value1, Date value2) {
            addCriterion("last_updated_time between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }

        public Criteria andLastUpdatedTimeNotBetween(Date value1, Date value2) {
            addCriterion("last_updated_time not between", value1, value2, "lastUpdatedTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}